package com.prime.tutorial.moviestore.view.physicalview;

import com.prime.tutorial.moviestore.service.physicalview.XmlCreator;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Component;

import javax.xml.stream.XMLStreamException;
import java.io.IOException;

/**
 * Created by IntelliJ IDEA.
 * User: me
 * Date: 27 бер 2010
 * Time: 14:43:22
 * To change this template use File | Settings | File Templates.
*/

@Component("updateGoogleMap")
@Scope("request")
public class UpdateGoogleMap {
    @Autowired
    public UpdateGoogleMap(XmlCreator xmlCreator) {
        this.xmlCreator = xmlCreator;
    }

    private XmlCreator xmlCreator;

    public String update() throws XMLStreamException, IOException {
        xmlCreator.createTestData();
        
        return null;
    }
}
